using System;

namespace Kiwi.Container
{
    public class ConstructorNotFoundException : ContainerException
    {
        public ConstructorNotFoundException(Type type)
        {
            Type = type;
        }

        public Type Type { get; set; }

        public override string Message
        {
            get
            {
                return
                    string.Format(
                        "Component of type {0} has no suitable constructor whose dependencies can be fulfilled by the container.",
                        Type);
            }
        }
    }
}